<%--
  Created by IntelliJ IDEA.
  User: dell
  Date: 2023/6/8
  Time: 21:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>银行卡列表</title>
</head>
<body>
<c:if test="${empty user.userCards}">
    <%--如果还没绑卡的情况--%>
    <tr>
        <td colspan="5"><a href="index.jsp">当前未绑定银行卡，请绑定银行卡！</a> </td>
    </tr>
</c:if>
<c:if test="${not empty user.userCards}">
    <%--如果已经绑卡的情况--%>
    <c:forEach items="${user.userCards}" var="UserCard">
        <tr>
            <td>开户行:${UserCard.bankname}</td>
        </tr>
        <tr>
            <td>
                <input class="updateCount" style="width: 220px;"
                       bookId="${entry.value.id}"
                       type="text" value="银行卡号${UserCard.cid}">
            </td>
        </tr>
        <tr>
            <td>
                <input class="updateCount" style="width: 100px;"
                       bookId="${entry.value.id}"
                       type="text" value="余额：${UserCard.money}">
            </td>
        </tr>
        <br>
    </c:forEach>

</c:if>
</body>
</html>
